package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class BooleanFactor {

    private int beginIndex;
    private int endIndex;
    private boolean not;
    private BooleanTest booleanTest;

    public BooleanFactor(int beginIndex, boolean not, BooleanTest booleanTest) {
        this.beginIndex = beginIndex;
        this.endIndex = booleanTest.getEndIndex();
        this.not = not;
        this.booleanTest = booleanTest;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNot() {
        return not;
    }

    public BooleanTest getBooleanTest() {
        return booleanTest;
    }

}
